FuzzyKt

object FuzzyKt(source)

Functions

Link copied to clipboard

Returns the start and end index of the longest common substring, in reference to the first string passed.

Link copied to clipboard

The ratio between the smallest of the two strings and the most similar substring. (Longest common substring, adjusted to the same length as the shortest string.)

Link copied to clipboard
fun ratio(s1: String, s2: String): Double

The similarity ratio between the two strings.